package com.kk.boot_start_com1.service;

import com.kk.boot_start_com1.properties.TestProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TestService {

    @Autowired
    TestProperties testProperties;

    public String sayHello() {
        return "你好：名字：【" + testProperties.getName ( ) + "】;年龄：【" + testProperties.getAge ( ) + "】</br> "+testProperties.getFavorites ()+"</br> user:"+testProperties.getUser ().getName ();
    }
}
